package zjump.simplelibrary.utils;

import android.util.Log;

public class LogUtils {

	private static boolean LOG_SWITCH = true;

	private static String TAG = "zjump.simplelibrary";

	public static void isOpenLog(boolean isOpen) {
		LOG_SWITCH = isOpen;
	}

	public static void setLogTag(String tag) {
		TAG = tag;
	}

	public static void D(Object msg) {
		if (LOG_SWITCH)
			Log.d(TAG, msg + "");
	}

	public static void E(Object msg) {
		if (LOG_SWITCH)
			Log.e(TAG, msg + "");
	}

	public static void I(Object msg) {
		if (LOG_SWITCH)
			Log.i(TAG, msg + "");
	}

}
